<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="java.util.*" import="edu.scu.declaresys.vo.*"
	import="edu.scu.declaresys.config.*"
	import="edu.scu.declaresys.web.util.*;"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>系统配置</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" href="css/tree.css" type="text/css"></link>
<link rel="stylesheet" href="css/comm.css" type="text/css"></link>
<link rel="stylesheet" href="css/settings.css" type="text/css"></link>
<script type="text/javascript" src="fckeditor/fckeditor.js"></script>
</head>
<body>
	<jsp:include page="/jsp/template/pageHead.jsp" />
	<div>系统配置--&gt;新闻管理--&gt;增加新闻</div>
	<jsp:include page="/jsp/template/settingsGuide.jsp"></jsp:include>
	<div class="user_add">
		<form action="<%=IActionName.NEWS_ADD%>" method="post">
			<div class="news_style_title">
				<table>
				<tr>
					<td>新闻标题</td>
					<td><input type="text" name="<%=News.T_TITLE %>"/>
					</td>
				</tr>
				<tr>
					<td>新闻类别</td>
					<td><select name="<%=News.T_NEWS_CLASS_ID %>" id="select">
							<%
								List<NewsClass> classLst = (List<NewsClass>)request.getAttribute(IAttrName.CLASS_LIST);
								for(NewsClass type : classLst)
								{
									out.println("<option value=\"" + type.getId() + "\">" + type.getName()+ "</option>");
								}
							 %>
					</select></td>
				</tr>
				</table>
			</div>
			<div>
						<table>
				<tr>
					<td>新闻内容</td>
					<td><script type="text/javascript">
						var oFCKeditor = new FCKeditor('content');
						oFCKeditor.BasePath = "fckeditor/";
						oFCKeditor.Width = "100%";
						oFCKeditor.Height = "80%";
						oFCKeditor.Create();
					</script>
					</td>
				</tr>

				<tr>
					<td colspan="2"><input type="submit" class="submitBtn"
						value="提交" />
					</td>
				</tr>
			</table>
			</div>
			
		</form>
	</div>
</body>
</html>
